home *** CD-ROM | disk | FTP | other *** search
/ Tech Win 1999 February / TECH Win 02-1999 Disc A.iso / ols / lzh / cgit2001.lzh / cgitools / compile.bat < prev    next >
Encoding:
DOS Batch File  |  1998-01-25  |  595 b   |  26 lines

  1. @echo off
  2. if exist %0\..\toolslib.exe call %0\..\setpath
  3. exmain %0 %1 %2
  4. print "?n;<exmain compiler>?n;?n;"
  5. set source=%1
  6. if ("%1"=="") {
  7.   echo usage: compile souce-name [object-name]
  8.   end
  9. }
  10. if not exist %source% set source=%1.bat
  11. if (!exist "%source%") {
  12.   echo Source file does not exist.
  13.   end
  14. }
  15. toolslib exmain "%source%"
  16. if errorlevel 2 end
  17. call %tmpfile0%
  18. set object=%2
  19. if "%object%"=="" set object=%1(obj).bat
  20. type %cmdline% > %object%
  21. echo The %source% was compiled to create a object "%object%".
  22. if exist %cmdline% del %cmdline%
  23. echo.
  24. set source=
  25. set object=
  26.